#include "App_Key.h"

uint8_t Alarm_Reset = 0;
uint8_t is_OLEDShow = 1;

void App_Key_GetKeyNum(void)
{
    KeyNum_t k = Inf_ADC_GetKeyNum();
    if(k == Key1)
    {
        is_OLEDShow = 1;
    }
    else if(k == Key2)
    {
        // 进入待机模式
        OLED_Clear();
        OLED_Update();
        is_OLEDShow = 0;
    }
    else if(k == Key3)
    {
        // 复位报警状态
        Alarm_Reset = 1;
    }
    else if(k == Key4)
    {
       // 待定功能按键
    }
}
